import java.util.LinkedList;

public abstract class Rule {
	protected String symbol;
	public abstract boolean isTerminal();
	public abstract LinkedList<terminal> getFirst();
	public abstract LinkedList<terminal> getFollow();
	
	public String getSymbol() {
		return symbol;
	}

	public boolean equals(Rule other){
		return ( other.getSymbol().equals(this.getSymbol()) );
	}

	@Override
	public abstract String toString();
}
